package com.game.element
{
	import com.interfaces.general.mangaer.IDispose;
	
	import fl.core.UIComponent;
	
	public class ItemElement extends UIComponent implements IDispose {
		
		public function ItemElement() {
			super();
			
			this.graphics.clear();
			this.graphics.beginFill(Math.random()*0xFFFFFF,1);
			this.graphics.drawRect(-5,-5,10,10);
			this.graphics.endFill();
		}
		
		public function useing(baseElement:BaseElement):Boolean{
			return false;
		}
		
		public function dispose():void{
			if(this.parent != null){
				this.parent.removeChild(this);
			}
		}
	}
}